<?php
include_once '../../../Core/Conexion.php';
include_once '../../../Core/Controlador.php';
include_once '../../../Core/InterfazDatos.php';
//include_once '../../../../Core/Conexion.php';
include_once '../../../Admin/entidades/Calificacion.php';
/*
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Eliminar
 *
 * @author carlos
 */
class Eliminar  extends Controlador
{
   function __construct() {
        parent::__construct();
    }
    
    public function ejecutar() 
    {
           // $entidad=new Alumno('0', $_POST['cedula'], $_POST['cCurso'], $_POST['pNombre'], $_POST['sNombre'], $_POST['pApellido'], $_POST['sApellido'],$_POST['fNacimiento'],$_POST['direccion'],$_POST['genero'],$_POST['telefono'],$_POST['email'],$_POST['nacionalidad']);
            //echo "DELETE FROM CALIFICACION WHERE IDASIGNATURA='".$_REQUEST['asignatura']."' AND IDALUMNO='".$_REQUEST['alumno']."' "; 
            $entidad=$this->conexion->consultaLibre("DELETE FROM CALIFICACION WHERE IDASIGNATURA='".$_REQUEST['asignatura']."' AND IDALUMNO='".$_REQUEST['alumno']."' ");        
            //$entidad= new Calificacion($_REQUEST['codigo'],"","","","","","");
            //$this->conexion->eliminar($entidad);
            
            
           // header("Location: ../lista.php");
    }    //put your code here
}

$controlador=new Eliminar();
$controlador->ejecutar();
 